﻿{include file="public/header" /}
<title></title>
</head>

<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 财务管理 <span class="c-gray en">&gt;</span> 提现申请
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
	<div class="tabBar cl">
		<a style="color: white;text-decoration:none;" href="{:url('user_tixian')}"><span class="current">会员提现</span></a>
		<a style="color: black;text-decoration:none;" href="{:url('agent_tixian')}"><span>商家提现</span></a>
		<a style="color: black;text-decoration:none;" href="{:url('oem_tixian')}"><span>oem提现</span></a>
	</div>
	<form class="form form-horizontal" id="form-admin-add" method="post" style="width: 45%;">
		<div class="row cl">
			<label class="form-label col-xs-4"><span class="c-red">*</span>用户手机号码：</label>
			<div class="formControls col-xs-8 ">
				<input id="mobile" name="mobile" type="text" class="input-text" placeholder="请输入用户手机号码" >
			</div>
		</div>
		<div class="row cl">
			<button type="submit" style="float: right;margin-top: 10px;margin-bottom: 10px;width: 270px;height: 25px;">搜索</button>
		</div>
	</form>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr class="text-c">
				<th>用户账号</th>
				<th>用户余额</th>
				<th>提现金额</th>
				<th>实际到帐金额</th>
				<th>提现账户</th>
				<th>开户行</th>
				<th>开户行支行</th>
				<th>户名</th>
				<th>银行预留手机号</th>
				<th>申请时间</th>
				<th>状态</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="vo" empty="$empty"}
			<tr class="text-c">
				<td>{$vo.mobile}</td>
				<td>{$vo.balance}</td>
				<td><?php  echo substr($vo['tixianmoney'],0,strlen($vo['tixianmoney'])-2);?></td>
				<td><?php  echo substr($vo['actual_balance'],0,strlen($vo['actual_balance'])-2);?></td>
				<td>{$vo.bank_no}</td>
				<td>{$vo.bank_name1}</td>
				<td>{$vo.bank_account}</td>
				<td>{$vo.bank_username}</td>
				<td>{$vo.bank_mobile}</td>
				<td>{$vo.create_time}</td>
				<td>
				{switch name="$vo.cash_state"}
				    {case value="1"}处理中{/case}
				    {case value="2"}已完成{/case}
				    {default /}失败
				{/switch}
				</td>
				<td class="td-manage">
					{if $vo.cash_state==1}
					<a title="审核" href="javascript:;" onclick="tx_operate('审核通过','{:url('sys/tx_operate',['id'=>$vo.id,'type'=>2,'usertype'=>$vo.user_type])}','500','410')" class="ml-5" style="text-decoration:none">审核</a>
					<a title="驳回" href="javascript:;" onclick="tx_operate('审核驳回','{:url('sys/tx_operate',['id'=>$vo.id,'type'=>3,'usertype'=>$vo.user_type])}','500','410')"  class="ml-5" style="text-decoration:none">驳回</a>
					{else /}
					审核完成
					{/if}
				</td>
			</tr>
			{/volist}
			</tbody>
			</table>
			<div class="fenye" style="display: block;">
				{$list->render()}
			</div>
		</div>
		
		{include file="public/footer" /}
		<script type="text/javascript">
			/*审核跳转*/
			function tx_operate(title, url, w, h) {
				layer_show(title, url, w, h);
			}
		
			/*审核*/
			function tx_operate1(obj, id) {
				$.ajax({
					type: 'get',
					url: "{:url('sys/tx_operate')}",
					dataType: 'json',
					data: {
						id: id
					},
					success: function(data) {
						if(data.code == 200) {
							$(obj).parents("tr").remove();
							layer.msg(data.msg, {
								icon: 1,
								time: 1000
							});
						} else {
							layer.msg(data.msg, {
								icon: 1,
								time: 1000
							});
						}
					},
					error: function(data) {
						console.log(data.msg);
					}
				});
			}

		</script>